<?php
namespace catchAdmin\registration\tables\forms;

use catcher\library\form\Form;

class Flresult extends Form
{
    public function fields(): array
    {
        // TODO: Implement fields() method.
        return [
            self::input('name', '随访结果名称')->required(),
            self::radio('category', '类别')->value(0)->options(
                self::options()->add('电话结果', 1)->add('患者结果', 0)->render()
            )->col(12),
            self::radio('is_effective', '是否有效')->value(0)->options(
                self::options()->add('有效', 1)->add('无效', 0)->render()
            )->col(12),
            self::number('sort', '排序')->value(1)->col(12),
        ];
    }
}